Skip to main content

sc.example

Lets you read examples thats from the Computer.


Structures​

Example​

Fields​

  • name [ string ] The name of the example.
  • script [ string ] The script in the example.

Functions​

getExamples​

sc.example.getExamples()

Gets the loaded examples.

Returns:

  • [ Example[] ] All loaded examples.

getTotalExamples​

sc.example.getTotalExamples()

Gets the total number of examples currently loaded.

Returns:

  • [ integer ] The total number of loaded examples.

loadExample​

sc.example.loadExample( name )

Gets a example from name

Arguments:

  • name [ string ] The example name

Returns:

  • [ Example? ] The discovered example, nil if not found